
#ifndef _WORKER_H_
#define _WORKER_H_

typedef struct {
    FILE    *fp;
    size_t   total_bytes;
    int      drop_unestablished;
    int      no_mem;
    int      req;
    int      req_incomplete;
} worker_t;

void worker_global_init();
void worker_process_pkt(worker_t *worker, struct iphdr *iph, struct tcphdr *tcph, u_char *data, size_t len);
worker_t *worker_create(const char *ifname, int thrid);
void worker_dump(worker_t *w);

extern int worker_hashsize;

#endif

